import { i as c, __tla as __tla_0 } from './_virtual___federation_fn_import-GZdVVtpp.js'
Promise.all([
  (() => {
    try {
      return __tla_0
    } catch {}
  })(),
]).then(async () => {
  ;(function () {
    const e = document.createElement('link').relList
    if (e && e.supports && e.supports('modulepreload')) return
    for (const r of document.querySelectorAll('link[rel="modulepreload"]')) n(r)
    new MutationObserver(r => {
      for (const i of r)
        if (i.type === 'childList')
          for (const s of i.addedNodes)
            s.tagName === 'LINK' && s.rel === 'modulepreload' && n(s)
    }).observe(document, {
      childList: true,
      subtree: true,
    })
    function o(r) {
      const i = {}
      return (
        r.integrity && (i.integrity = r.integrity),
        r.referrerPolicy && (i.referrerPolicy = r.referrerPolicy),
        r.crossOrigin === 'use-credentials'
          ? (i.credentials = 'include')
          : r.crossOrigin === 'anonymous'
          ? (i.credentials = 'omit')
          : (i.credentials = 'same-origin'),
        i
      )
    }
    function n(r) {
      if (r.ep) return
      r.ep = true
      const i = o(r)
      fetch(r.href, i)
    }
  })()
  const p = {
      'remote-app': {
        url: 'http://localhost:5002/assets/remoteEntry.js',
        format: 'esm',
        from: 'vite',
      },
    },
    a = {}
  function f(t, e) {
    return _(t).then(o => () => o)
  }
  function l(t, e) {
    const o = Object.assign(t, e)
    for (const n of Object.keys(o))
      typeof o[n] == 'object' && typeof e[n] == 'object' && (o[n] = l(o[n], e[n]))
    return o
  }
  const m = t =>
    l(
      {
        vue: {
          '3.5.23': {
            get: () =>
              f(new URL('__federation_shared_vue-B0sokOpO.js', import.meta.url).href),
            loaded: 1,
          },
        },
        pinia: {
          '3.0.4': {
            get: () =>
              f(new URL('__federation_shared_pinia-Nysjxf6x.js', import.meta.url).href),
            loaded: 1,
          },
        },
      },
      (globalThis.__federation_shared__ || {}).default || {}
    )
  async function _(t) {
    return (
      a[t] ??
        (a[t] = import(t).then(async m2 => {
          await m2.__tla
          return m2
        })),
      a[t]
    )
  }
  async function h(t) {
    const e = p[t]
    if (e.inited) return e.lib
    if (['esm', 'systemjs'].includes(e.format))
      return new Promise((o, n) => {
        Promise.resolve(e.url).then(i => {
          import(i)
            .then(async m2 => {
              await m2.__tla
              return m2
            })
            .then(s => {
              if (!e.inited) {
                const u = m()
                s.init(u), (e.lib = s), e.lib.init(u), (e.inited = true)
              }
              o(e.lib)
            })
            .catch(n)
        })
      })
  }
  function g(t, e) {
    if (!(t == null ? void 0 : t.default) && e) {
      let o = /* @__PURE__ */ Object.create(null)
      return (o.default = t), (o.__esModule = true), o
    }
    return t
  }
  function y(t, e) {
    return h(t).then(o => o.get(e).then(n => n()))
  }
  const { ref: v } = await c('vue')
  function b() {
    const t = v()
    function e() {
      t.value += 1
    }
    return {
      count: t,
      addCount: e,
    }
  }
  const { addCount: w } = b(),
    O = {
      test: () => {
        w(), console.log('config.test zqj')
      },
    },
    {
      unref: j,
      createVNode: L,
      createTextVNode: N,
      openBlock: P,
      createElementBlock: B,
    } = await c('vue'),
    C = {
      class: 'App',
    },
    { defineAsyncComponent: A } = await c('vue'),
    R = {
      __name: 'App',
      setup(t) {
        const e = A(() => y('remote-app', './RemoteButton').then(n => g(n, true)))
        function o(n) {
          console.log(
            {
              count: n,
            },
            '\u4E8B\u4EF6\u629B\u51FA\u7684\u4E8B\u4EF6'
          ),
            O.test()
        }
        return (n, r) => (
          P(),
          B('div', C, [
            r[0] || (r[0] = N(' host vue3.5 ', -1)),
            L(j(e), {
              msg: '\u817E\u8BAF\u7EC4\u4EF6\u5E93',
              onClickOn: o,
            }),
          ])
        )
      },
    },
    { createApp: E } = await c('vue'),
    { createPinia: M } = await c('pinia'),
    S = M(),
    d = E(R)
  d.use(S)
  d.mount('.host-vue3-5')
})
